﻿using App.Core.Entities;
using AppTemplate.Infrastructure.EntityBase;
using AppTemplate.Infrastructure.Paging;
using AppTemplate.Infrastructure.ServiceBase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace App.Core.Services
{
    public interface IUserService:IService<User>
    {
        Task<User?> Auth(string username, string password);
        Task<User?> GetUserByAccount(string account);
        Task<PageSearchResult<User>> PageSearch(int pageIndex, int pageSize, string? account = default, string? name = default);
    }
}
